package main

import (
	"errors"
	"fmt"
	"github.com/spf13/viper"
)

func init() {
	viper.SetConfigName("tsconfig") // 不需要扩展名
	viper.SetConfigType("json")
	viper.AddConfigPath(".") // 设置为父目录
}
func main() {
	fmt.Println("Hello World kso Interfaces ")
	c := Circle{Radius: 5}

	fmt.Println(c.perimeter())
	fmt.Println(c.customIs(map[string]string{"das": "asd23"}))
	var mockUser = mockUserDataStore{}
	mockUser.GetName()
	use := &mockUserDataStore{
		pendingError: errors.New("error"),
		pendingScore: 330,
		deletedUsers: []string{"asdasd", "xcxcq2w3"},
	}
	err := intertest23(use)
	fmt.Println(err)
	jsonconfig()
	stu := student{
		name: "kso",
		age:  10,
	}
	stu.setStudent(student{
		name: "ksonew",
		age:  10 + 30,
	})
	fmt.Printf("student: %+v \n ", stu)
	starts()
	testmain()
}
